package cn.tedu.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;

/**
 * @ClassName EasyIdClient
 * @Description:类描述
 * @Author Tedu
 * @Date 2021/7/1 14:44
 * @Version V1.0
 **/
@FeignClient(name="account")
public interface AccountClient {
    @GetMapping("/decrease/{userId}/{money}")
    public String decrease(
            @PathVariable("userId")Long userId, @PathVariable("money")BigDecimal money);
}
